package com.crane.oss.job;


import com.crane.oss.school.dao.StudentDao;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;

@Component
public class StudentAgeJob {

    @Resource
    protected StudentDao studentDao;

    @Scheduled(cron = "0 0 1 * * ?")
    public void  updateStudentAge(){
        studentDao.updateAllStudentAge();
    }
}
